package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.common.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CheckGroupMapper {
       Integer add(CheckGroup checkGroup);

    void addtoMidle(Integer groupId, String[] checkitemIds);

    void deleteMiddleById(Integer id);

    void deleteGroupById(Integer id);

    void edit(CheckGroup checkGroup);


    Page<CheckGroup> findPage(Map<String, String> map);
}
